import Axios from 'axios';
require('./boot');
Axios.defaults.withCredentials = true;
Axios.defaults.headers.post['Content-Type'] = 'application/json';
Axios.defaults.timeout = 25000;
if (process.env.NODE_ENV !== 'production') {
  // window.restConfig = {
  //   rootUrl: 'http://192.168.94.125:3019/api/v1'
  // }
  window.restConfig = {
    rootUrl: 'http://localhost:3019/api/v1',
    img: 'http://localhost:3019'
  }
  Axios.defaults.withCredentials = true;
} else {
  window.restConfig = {
    rootUrl: '/api/v1',
    img: ''
  }
}
